package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import com.sky.result.Result;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Delete;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface ShoppingCartService {
    /**
     * 添加购物车
     * @param shoppingCartDTO
     * @return
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);
    /**
     * 查询购物车
     * @return
     */
    public Result<List<ShoppingCart>> list();
    /**
     * 删除购物车
     * @return
     */
    public Result clean();
    /**
     * 删除购物车中的商品
     * @param shoppingCartDTO
     * @return
     */
    public Result deleteShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
